﻿using Autofac;
using NUnit.Framework;
using ReactiveGraph.Core.Configuration.Containers;

namespace ReactiveGraph.Core.Configuration.Tests.Containers
{
    [TestFixture]
    public class AutofacCoreModuleTests : ContainerTestsBase
    {
        private IContainer _container;

        [SetUp]
        public void Setup()
        {
            var builder = new ContainerBuilder();
            builder.RegisterModule<AutofacCoreModule>();
            _container = builder.Build();
        }

        public override T Resolve<T>()
        {
            return _container.Resolve<T>();
        }
    }
}
